package com.ihr360.payroll.model.dto.salary.basecode;

import com.ihr360.commons.model.dto.BaseCode;
import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;

import javax.persistence.Cacheable;
import javax.persistence.Column;
import javax.persistence.Entity;

/** 个税缴纳地 */
@Entity
@Cacheable
@Cache(region = "cnb.base", usage = CacheConcurrencyStrategy.NONSTRICT_READ_WRITE)
public class TaxDivision extends BaseCode<Long> {

    @Column(columnDefinition = "bit(1) default 0")
    private boolean embedded;

    private static final long serialVersionUID = -7255049245180093623L;

    public static TaxDivision defaultTaxDivion(){
        TaxDivision taxDivision = new TaxDivision();
        taxDivision.setCode("ZHCN");
        return taxDivision;
    }
}
